package com.learm.thread;

public class LinkDemoTest {

    private LinkDemo head;
    private LinkDemo tail;

    public static void main(String[] args) {
        LinkDemoTest t = new LinkDemoTest();


    }

    public void addNode(LinkDemo linkDemo){

        if(null == head){
            head = linkDemo;
            tail.setPrev(head);
        }
    }

    public LinkDemo getHead() {
        return head;
    }

    public void setHead(LinkDemo head) {
        this.head = head;
    }

    public LinkDemo getTail() {
        return tail;
    }

    public void setTail(LinkDemo tail) {
        this.tail = tail;
    }
}
